package com.ltu.model.request.base;

import com.ltu.model.request.CommonRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper=true)
public class BaseIdReq extends CommonRequest{

	public BaseIdReq() {
		
	}
	public BaseIdReq(String id2) {
		this.id=id2;
	}

	@ApiModelProperty(required=true,value="Id不可以为空")
	@NotNull(message="Id不可以为空")
	private String id;
	
	
	@Override
	   public String toString() {
	       return "BaseIdReq{" +
	               "id='" + id + '\'' +
	               '}';
	   }
	   
}
